import cv2 as cv


def bi_demo(img):
    dst = cv.bilateralFilter(img,0,100,20)
    cv.imshow('bilateral demo', dst)


def mean_demo(img):
    dst = cv.pyrMeanShiftFiltering(src,5, 30)
    cv.imshow('mean shift demo', dst)


src = cv.imread('lena.jpg', 1)
cv.namedWindow('demo',cv.WINDOW_AUTOSIZE)
cv.imshow('demo', src)
bi_demo(src)
# mean_demo(src)
cv.waitKey(0)
cv.destroyWindow('demo')